Add workaround for MacPorts' mutant build/install of Qt frameworks.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Feb 2013 20:00:45 +0000 (20:00 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Feb 2013 20:00:45 +0000 (20:00 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4277 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/configure.in

index e602cb6efbb773f62a351d4ac18086eaf10816b1..f1986aad63f1d18c2cab70563508f9cdd1491dbd 100644 (file)
@@ -189,7 +189,16 @@ case "$target" in
       USB_LIBS="-framework  IOKit -framework CoreFoundation"
       AC_DEFINE(HAVE_LIBUSB, 1)
       CFLAGS="$CFLAGS -Imac/libusb/"
-      QT_LIBS="-F$(qmake -query QT_INSTALL_LIBS) -framework QtCore"
+      # Macports uses a non-standard build of Qt with an added 
+      # QT_INSTALL_FRAMEWORKS flag, so look for thier custom
+      # version first.  That will fail on 'normal' Qt so fall 
+      # back to QT_INSTALL_LIBS.
+      QT_LIBS=$(qmake -query QT_INSTALL_FRAMEWORKS)
+      if test $QT_LIBS = "**Unknown**" ; then
+         QT_LIBS=$(qmake -query QT_INSTALL_LIBS)
+      fi
+      QT_LIBS="-F$QT_LIBS -framework QtCore"
       ;;
     *)
        GBSER=gbser_posix.o